<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Orders.aspx.cs" Inherits="Orders" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 471px">
            <tr>
                <td style="width: 490px">
                    <div>
                        <div>
                            <table>
                                <tr>
                                    <td style="width: 233px">
                                        <strong>Online Orders</strong></td>
                                    <td style="width: 257px; text-align: right">
                                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/YourCart.aspx">View Your Cart</asp:HyperLink></td>
                                    <td style="width: 226px; text-align: right">
                                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Search.aspx">Back to Search Page</asp:HyperLink></td>
                                </tr>
                                <tr>
                                    <td colspan="3" style="text-align: center">
                                        <hr />
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="3" style="text-align: center">
                                        <table style="width: 355px">
                                            <tr>
                                                <td nowrap="nowrap" style="width: 177px" align="left">
                                                    Full Name
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFullName"
                                                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
                                                <td style="width: 8px">
                                                    :</td>
                                                <td style="width: 257px">
                                                    <asp:TextBox ID="txtFullName" runat="server" Width="343px"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td nowrap="nowrap" style="width: 177px" align="left">
                                                    Address
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtFullName"
                                                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
                                                <td style="width: 8px">
                                                    :</td>
                                                <td style="width: 257px">
                                                    <asp:TextBox ID="txtAddress" runat="server" Width="343px"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td nowrap="nowrap" style="width: 177px" align="left">
                                                    Telephone
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtFullName"
                                                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
                                                <td style="width: 8px">
                                                    :</td>
                                                <td style="width: 257px">
                                                    <asp:TextBox ID="txtTel" runat="server" Width="343px"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td align="left" nowrap="nowrap" style="width: 177px">
                                                    Email<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtEmail"
                                                        ErrorMessage="*"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                                                        ErrorMessage="*" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
                                                <td style="width: 8px">
                                                    :</td>
                                                <td style="width: 257px">
                                                    <asp:TextBox ID="txtEmail" runat="server" Width="343px"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td nowrap="nowrap" style="width: 177px" align="left">
                                                    Contact Person
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtContact"
                                                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
                                                <td style="width: 8px">
                                                    :</td>
                                                <td style="width: 257px">
                                                    <asp:TextBox ID="txtContact" runat="server" Width="343px"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td nowrap="nowrap" style="width: 177px" valign="top" align="left">
                                                    Payment Type</td>
                                                <td style="width: 8px">
                                                    :</td>
                                                <td style="width: 257px" align="left">
                                                    <asp:DropDownList ID="ddlPayType" runat="server" Width="129px">
                                                        <asp:ListItem>Cash</asp:ListItem>
                                                        <asp:ListItem>Bank Transfer</asp:ListItem>
                                                    </asp:DropDownList></td>
                                            </tr>
                                            <tr>
                                                <td align="left" nowrap="nowrap" style="width: 177px" valign="top">
                                                    Decription</td>
                                                <td style="width: 8px">
                                                    :</td>
                                                <td style="width: 257px">
                                                    <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Width="343px"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td nowrap="nowrap" style="width: 177px">
                                        </td>
                                                <td style="width: 8px">
                                                </td>
                                                <td style="width: 257px">
                                                    <table style="width: 346px">
                                                        <tr>
                                                            <td align="left" style="width: 133px">
                                        <asp:Button ID="btnOrder" runat="server" Text="Order" OnClick="btnOrder_Click" Width="61px" />
                                                                <input id="Reset1" type="reset" value="Reset" /></td>
                                                            <td>
                                                            </td>
                                                            <td style="text-align: right">
                                                    <asp:Literal ID="Literal2" runat="server"></asp:Literal></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table><hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3" style="text-align: center" valign="top">
                                        <asp:Literal ID="Literal1" runat="server"></asp:Literal></td>
                                </tr>
                                <tr>
                                    <td colspan="3" style="text-align: left" valign="top">
                                        <asp:DataList ID="DataList1" runat="server"  
                                            RepeatColumns="2" RepeatDirection="Horizontal" Width="100%">
                                            <ItemTemplate>
                                                <table style="width: 218px">
                                                    <tr>
                                                        <td style="width: 73px" valign="top">
                                                        </td>
                                                        <td style="width: 73px" valign="top">
                                                            Name</td>
                                                        <td style="width: 9px" valign="top">
                                                            :</td>
                                                        <td style="width: 223px" valign="top">
                                                            <asp:Label ID="lblName" runat="server" Font-Bold="True" Text='<%# Bind("Name") %>'
                                                                Width="154px"></asp:Label></td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 73px" valign="top">
                                                        </td>
                                                        <td style="width: 73px" valign="top">
                                                            Quantity</td>
                                                        <td style="width: 9px" valign="top">
                                                            :</td>
                                                        <td style="width: 223px" valign="top">
                                                            <asp:Label ID="lblQuantity" runat="server" Text='<%# Bind("Quantity") %>' Width="116px"></asp:Label></td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 73px" valign="top">
                                                        </td>
                                                        <td style="width: 73px" valign="top">
                                                            SalesPrice</td>
                                                        <td style="width: 9px" valign="top">
                                                            :</td>
                                                        <td style="width: 223px" valign="top">
                                                            <asp:Label ID="lblPrice" runat="server" Text='<%# Bind("Price") %>' Width="116px"></asp:Label></td>
                                                    </tr>
                                                </table>
                                                &nbsp;<br />
                                                <asp:Label ID="lblID" runat="server" Font-Bold="True" Text='<%# Bind("ID") %>' Visible="False"
                                                    Width="30px"></asp:Label><br />
                                            </ItemTemplate>
                                        </asp:DataList>
                                        <hr />
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
